//
// Created by tonystark on 16/4/15.
// Copyright (c) 2016 sewm. All rights reserved.
//

#import "SystemManager.h"
#import "LoginInfo.h"
#import "JPushHander.h"

@interface SystemManager () {

}
@property(nonatomic, strong) LoginInfo *loginInfo;
@end

@implementation SystemManager {

}

+ (instancetype)sharedInstance {
    static SystemManager *sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[SystemManager alloc] init];
    });
    return sharedInstance;
}

- (void)configLoginInfo:(LoginInfo *)loginInfo {
    self.loginInfo = loginInfo;
    Just_RUN_ON_BACKGROUD_THREAD(^{
        [JPushHander setTag];
    });
}

#pragma mark Base Property

- (NSString *)departmentId {
    return self.loginInfo.departmentId;
}

- (NSString *)clientId {
    return self.loginInfo.clientId;
}

- (NSString *)clientName {
    return self.loginInfo.clientName;
}

@end